﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Twi.COMMON.Core;
using System.IO;

namespace Twi.Test.COMMON.Core
{
    [TestClass()]
    public class TwiFileHelperTest
    {
        private TestContext testContextInstance;

        /// <summary>
        ///获取或设置测试上下文，上下文提供
        ///有关当前测试运行及其功能的信息。
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        /// <summary>
        ///测试
        ///</summary>
        [TestMethod()]
        public void CreateAFile()
        {
            FileInfo fi = TwiFileHelper.GetFileInfo("D:/Log/");
            Console.WriteLine(fi.FullName);
            //Assert.Inconclusive("验证此测试方法的正确性。");
        }

        [TestMethod()]
        public void GetIp()
        {
            string ip = TwiNetHelper.GetIp();
        }
    }
}
